package com.tiance.demo.service.mysql.bo.pageindex;

import com.tiance.demo.service.mysql.utils.ByteUtils;

public class Infimum {

    /**
     * 一个Infimum是13字节
     */
    public static final int SIZE = 13;

    private byte[] bytes;

    /**
     * 记录头信息
     */
    private RecordHead recordHead;

    /**
     * infimum的标记, 存储的就是"infimum ",后边有一个0x00的特殊字符
     */
    private String mark;

    public byte[] getBytes() {
        return bytes;
    }

    public void setBytes(byte[] bytes) {
        this.bytes = bytes;
    }

    public RecordHead getRecordHead() {
        return recordHead;
    }

    public void setRecordHead(RecordHead recordHead) {
        this.recordHead = recordHead;
    }

    public String getMark() {
        return mark;
    }

    public void setMark(String mark) {
        this.mark = mark;
    }

    @Override
    public String toString() {
        return "Infimum:\n" +
                "bytes=" + ByteUtils.bytes2HexStr(bytes) +
                "\n" + recordHead +
                ", mark='" + mark + '\'' +
                ' ';
    }
}
